package jobOO3;
public abstract class DaNei2 {
    String name;
    int age;
    double salay;
    DaNei2(String name,int age,double salay){
        this.name=name;
        this.age=age;
        this.salay=salay;
    }
    void sayHi(){
        System.out.println("我叫"+name+"，今年"+age+"岁，月薪"+salay);
    }
    void clockin(){
        System.out.println(name+"正在上班打卡");
    }
    void punchin(){
        System.out.println(name+"正在下班打卡");
    }

    abstract void work();

}

class director extends DaNei2 implements Work3, Work4 {
    director(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }

    public void problem1() {
        System.out.println(name+"正在解决企业问题");
    }
    public void problem2(){
        System.out.println(name+"正在培训员工");
    }
    public void problem3() { System.out.println(name+"正在编辑书籍");
    }
}

class lecturer extends DaNei2 implements Work3,Work4{
    lecturer(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }

    public void problem1() {
        System.out.println(name+"正在解决企业问题");
    }
    public void problem2(){
        System.out.println(name+"正在培训员工");
    }

    public void problem3() {
        System.out.println(name+"正在编辑书籍");
    }
}

class manager extends DaNei2 implements Work4{
    manager(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }

    public void problem3() {
        System.out.println(name+"正在编辑书籍");
    }
}

class teacher extends DaNei2 {
    teacher(String name,int age,double salay){
        super(name,age,salay);
    }

    void work(){
        System.out.println(name+"正在完成工作");
    }
}